/********************************************************************
 
 Copyright (C), 2012年 dhc. All rights reserved.
 
 Filename: 	    MailClientList.h
 
 Author:        muzongcun
 
 Version:       1.0
 
 Description:   MailClientList
 
 History:
 
 muzongcun    2012/3/10     1.0     Create
 
 *********************************************************************/

#import <UIKit/UIKit.h>
#import "UserTaskDelegate.h"
#import "EGORefreshTableFooterView.h"
#import "EGORefreshTableHeaderView.h"
@class NavigationMainViewController;

@protocol MailClientListDelegate

-(void)SelectClientName:(id)obj;
@end


@interface MailClientList : UIViewController <UITableViewDelegate,UITableViewDataSource,UISearchBarDelegate,EGORefreshTableFooterDelegate, UserTaskDelegate, EGORefreshTableHeaderDelegate,UISearchDisplayDelegate, UISearchBarDelegate>
{
 
    BOOL                            m_bIsLoading;
    BOOL                            m_bSearching;
    NSString*                       m_strSearch;
	UITableView*                    m_listTV;
	UISearchBar*                    m_searchBar;
	UIButton*                       m_moreBtn;        //更多button
	NSMutableArray*                 m_contentArray;	
    UINavigationBar*                m_navBar;
    id<MailClientListDelegate>      m_clientDelegate;
    NavigationMainViewController*   m_mainViewCtl;
    EGORefreshTableHeaderView *     _refreshHeaderView;
    EGORefreshTableFooterView *     _refreshFooterView;
    UISearchDisplayController*      m_searchDisplayController;
   
}
@property (nonatomic,assign) UITableView*                  m_listTV;
@property (nonatomic,assign) UINavigationBar*              m_navBar;
@property (nonatomic,assign) UISearchBar*                  m_searchBar;
@property (nonatomic,assign) NavigationMainViewController* m_mainViewCtl;
@property (nonatomic,retain) NSMutableArray*               m_contentArray;
@property (nonatomic,assign) id<MailClientListDelegate>    m_clientDelegate;
@property (nonatomic, retain) EGORefreshTableHeaderView *  _refreshHeaderView;
@property (nonatomic, retain) EGORefreshTableFooterView *  _refreshFooterView;
@property (nonatomic, retain) UISearchDisplayController	*  m_searchDisplayController;

-(id)initWithNibName:(NSString *)nibNameOrNil navMainViewCtl:(NavigationMainViewController*)mainViewCtl bundle:(NSBundle *)nibBundleOrNil;
/*
 
 */
-(void) doSearch;
-(void) refreshData;
-(NSMutableArray*)readClientList;
-(void)showMoreContact:(id)sender;
-(void)cancelSelected:(id)sender;
@end
